package com.molin.myArrays;

import java.util.Arrays;
import java.util.Collections;

public class myArraysDemo {
    public static void main(String[] args) {
        int[] arr={1,2,3,2,4,6,7};
        int[] arr1={1,2,3,2,4,6,7};

        System.out.println(Arrays.toString(arr));
        Arrays.sort(arr1);
        System.out.println((Arrays.toString(arr1)));
        int[] arr2={1,2,3,4,5,6,7,8,9,10};
        int index=Arrays.binarySearch(arr2,11);
        System.out.println(index);
    }
}
